#ifndef ICECLIENT_H
#define ICECLIENT_H

#include <QString>
#include <QObject>
#include <opencv2/opencv.hpp>
#include "ObjIdentify.h"
#include <string>
#include <Ice/Ice.h>
#include "icebase.h"


using namespace IdentifyModule;
using namespace std;
using namespace cv;



class IceClient : public QObject
{
    Q_OBJECT
public:
    IceClient(QObject *parent = nullptr);
    void imgToRow(string imgfilepath, Row &img_Row);
    void imgToRow(Mat frame, Row &img_Row);
    int request(int type, string file ,::IdentifyModule::BboxSeq &objKind);
    int request(int type, Mat file ,::IdentifyModule::BboxSeq &objKind);
    int request(int type, QStringList &info);
    void setComputingPlatform(ComputingPlatform param);


private:


    int kModelWidth;
    int kModelHeight;
    int chn;
    int deviceID;
    string ModelPath;
    string WeightPath;
    ComputingPlatform cp;
};

#endif // ICECLIENT_H
